package scau.redi.social_platform.dao;

import scau.redi.social_platform.domain.pojo.SharedLiked;

import java.util.List;

public interface SharedLikedMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteBySharedId(Integer SharedId);

    int deleteBySharedIdAndUserId(Integer sharedId, Integer userId);

    int insert(SharedLiked record);

    int insertSelective(SharedLiked record);

    SharedLiked selectByPrimaryKey(Integer id);

    List<SharedLiked> selectBySharedId(Integer sharedId);

    List<SharedLiked> getAllByUserId(Integer userId);

    List<Object> getAllByLikedSum();

    int selectLastInsertId();

    int updateByPrimaryKeySelective(SharedLiked record);

    int updateByPrimaryKey(SharedLiked record);
}